﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.nm.Attributes;

namespace WeatherAPI.Model
{
    [Description("天气结果")]
    public class WeatherList
    {
        [ParamDescription("站点ID")]
        public string AreaId { get; set; }

        [ParamDescription("站点名称")]
        public string AreanName { get; set; }

        [ParamDescription("天气时间")]
        public DateTime WeatherDateTime { get; set; }

        [ParamDescription("星期")]
        public string Week { get; set; }

        [ParamDescription("预报天气列表")]
        public IList<WeatherDetail> forecastDetail { get; set; }

        [ParamDescription("实况天气列表")]
        public WeatherDetail observeDetail { get; set; }

        [Description("天气实体")]
        public class WeatherDetail
        {
            [ParamDescription("天气大类:1001001:预报,1001002:实况")]
            public string DataType { get; set; }

            [ParamDescription("序号:1001001:1,2,3,4,1001002:0")]
            public int Sequence { get; set; }

            [ParamDescription("具体天气信息")]
            public IList<ResultList> resultList { get; set; }
            
        }

        [Description("具体天气信息")]
        public class ResultList
        {
            [ParamDescription("Key")]
            public string Keys { get; set; }

            [ParamDescription("Value")]
            public string Values { get; set; }

            [ParamDescription("imgUrl")]
            public string imgUrl { get; set; }
        }
    }
}
